
<%@ page import="com.plan.WorkplanDetail" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'workplanDetail.label', default: 'WorkplanDetail')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-workplanDetail" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<h1><g:message code="default.list.label" args="[entityName]" /></h1>
		<div class="nav" role="navigation">
			<ul>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>

		<div id="list-workplanDetail" class="content scaffold-list" role="main">
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<table>
				<thead>
					<tr>
					
						<g:sortableColumn property="content" title="${message(code: 'workplanDetail.content.label', default: 'Content')}" />
					
						<g:sortableColumn property="result" title="${message(code: 'workplanDetail.result.label', default: 'Result')}" />
					
						<g:sortableColumn property="status" title="${message(code: 'workplanDetail.status.label', default: 'Status')}" />
					
						<th><g:message code="workplanDetail.parent.label" default="Parent" /></th>
					
						<th><g:message code="operate.label" default="operate" /></th>
					</tr>
				</thead>
				<tbody>
				<g:each in="${workplanDetailInstanceList}" status="i" var="workplanDetailInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td><g:link action="show" id="${workplanDetailInstance.id}">${fieldValue(bean: workplanDetailInstance, field: "content")}</g:link></td>
					
						<td>${fieldValue(bean: workplanDetailInstance, field: "result")}</td>
					
						<td>${fieldValue(bean: workplanDetailInstance, field: "status")}</td>
					
						<td>${fieldValue(bean: workplanDetailInstance, field: "parent")}</td>
					
						<td><g:link class="edit" action="edit" id="${workplanDetailInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
							<g:link class="edit" action="delete" id="${workplanDetailInstance?.id}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');">
							<g:message code="default.button.delete.label" default="Delete" /></g:link>
							
						</td>
					</tr>
				</g:each>
				</tbody>
			</table>
			<g:if test="${workplanDetailInstanceTotal > 10}">
				<div class="pagination">
					<g:paginate total="${workplanDetailInstanceTotal}" />
				</div>
			</g:if>
		</div>
	</body>
</html>
